﻿<%@ Page Language="C#" MasterPageFile="~/GUIMaster.Master" AutoEventWireup="true" CodeBehind="tripDetailDriverView.aspx.cs" Inherits="GUI.tripDetailDriverView" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<%@ Register Assembly="MapControl2" Namespace="MapControl2" TagPrefix="map" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <title>Trip details - Driver view</title>
    <link rel="stylesheet" type="text/css" href="../createTrip/resources/createTrip.css" />
    <script src="http://www.google.com/jsapi?key=ABQIAAAAzTWQpP7mgQtV7kTWbJTJ8RRRz0caoklsKOxz4pKCS_kzV_zgVxTz0y6Xn3JaBF1PbKIaDF63H1LJig" 
	  		  type="text/javascript"></script>
	
	<!-- Eliminato perchè caricato già nella masterpage
	<script src="../common/jquery-1.2.3.js" type="text/javascript"></script>
	-->
     
    <script type="text/javascript">
 
        $(document).ready(function(){
 	        $("div#mapDiv").hide();
		    $("a#viewMap").toggle(function(){
            $("div#mapDiv").show('fast');
        },function(){
        $("div#mapDiv").hide('slow');
   });
 });
 
 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHomePage" runat="server">
    
    <div id="tripDetail">
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                    DataSourceID="TripObjectDataSource" Height="50px" Width="125px" 
                    meta:resourcekey="DetailsView1Resource1">
                    <Fields>
                        <asp:BoundField DataField="Arrival" HeaderText="Arrival" ReadOnly="True" 
                            SortExpression="Arrival" meta:resourcekey="BoundFieldResource1" />
                        <asp:BoundField DataField="Departure" HeaderText="Departure" ReadOnly="True" 
                            SortExpression="Departure" meta:resourcekey="BoundFieldResource2" />
                        <asp:CheckBoxField DataField="AcceptSmoker" HeaderText="AcceptSmoker" 
                            ReadOnly="True" SortExpression="AcceptSmoker" 
                            meta:resourcekey="CheckBoxFieldResource1" />
                        <asp:CheckBoxField DataField="Accomplished" HeaderText="Accomplished" 
                            ReadOnly="True" SortExpression="Accomplished" 
                            meta:resourcekey="CheckBoxFieldResource2" />
                        <asp:BoundField DataField="DepartureDate" HeaderText="DepartureDate" 
                            ReadOnly="True" SortExpression="DepartureDate" 
                            meta:resourcekey="BoundFieldResource3" />
                        <asp:BoundField DataField="DeviationRadius" HeaderText="DeviationRadius" 
                            ReadOnly="True" SortExpression="DeviationRadius" 
                            meta:resourcekey="BoundFieldResource4" />
                        <asp:CheckBoxField DataField="Draft" HeaderText="Draft" ReadOnly="True" 
                            SortExpression="Draft" meta:resourcekey="CheckBoxFieldResource3" />
                        <asp:CheckBoxField DataField="RequireLicenced" HeaderText="RequireLicenced" 
                            ReadOnly="True" SortExpression="RequireLicenced" 
                            meta:resourcekey="CheckBoxFieldResource4" />
                        <asp:BoundField DataField="EstimatedBudget" HeaderText="EstimatedBudget" 
                            ReadOnly="True" SortExpression="EstimatedBudget" 
                            meta:resourcekey="BoundFieldResource5" />
                        <asp:BoundField DataField="EstimatedTime" HeaderText="EstimatedTime" 
                            ReadOnly="True" SortExpression="EstimatedTime" 
                            meta:resourcekey="BoundFieldResource6" />
                        <asp:BoundField DataField="FreeSeats" HeaderText="FreeSeats" ReadOnly="True" 
                            SortExpression="FreeSeats" meta:resourcekey="BoundFieldResource7" />
                        <asp:BoundField DataField="RealBudeget" HeaderText="RealBudeget" 
                            ReadOnly="True" SortExpression="RealBudeget" 
                            meta:resourcekey="BoundFieldResource8" />
                        <asp:BoundField DataField="RealTime" HeaderText="RealTime" ReadOnly="True" 
                            SortExpression="RealTime" meta:resourcekey="BoundFieldResource9" />
                        <asp:BoundField DataField="ReservationExpirationDate" 
                            HeaderText="ReservationExpirationDate" ReadOnly="True" 
                            SortExpression="ReservationExpirationDate" 
                            meta:resourcekey="BoundFieldResource10" />
                    </Fields>
                </asp:DetailsView>
    <div id="acceptedUser">
        <asp:CheckBoxList ID="acceptedCheckBoxList" runat="server" 
            meta:resourcekey="acceptedCheckBoxListResource1">
        </asp:CheckBoxList>
        <asp:Button ID="cancelAcceptedUsersButton" runat="server" Text="Delete users" 
            onclick="cancelAcceptedUsersButton_Click" 
            meta:resourcekey="cancelAcceptedUsersButtonResource1" />
        <cc1:ConfirmButtonExtender ID="cancelUserConfirmButtonExtender" runat="server" 
            TargetControlID="cancelAcceptedUsersButton" ConfirmText="Are you sure?" 
            Enabled="True">
        </cc1:ConfirmButtonExtender>
    </div>
    <div id="requestingUser">
    <asp:CheckBoxList ID="requestingCheckBoxList" runat="server" 
            meta:resourcekey="requestingCheckBoxListResource1">
        </asp:CheckBoxList>
        <asp:Button ID="acceptUserButton" runat="server" Text="Accept users" 
            onclick="acceptUserButton_Click" 
            meta:resourcekey="acceptUserButtonResource1" />
        <cc1:ConfirmButtonExtender ID="acceptConfirmButtonExtender" runat="server" 
            TargetControlID="acceptUserButton" 
            ConfirmText="Are you sure you want to accept the selected users?" 
            Enabled="True">
        </cc1:ConfirmButtonExtender>
        <asp:Button ID="rejectUserButton" runat="server" Text="Reject users" 
            onclick="rejectUserButton_Click" 
            meta:resourcekey="rejectUserButtonResource1" />
        <cc1:ConfirmButtonExtender ID="rejectConfirmButtonExtender" runat="server" 
            TargetControlID="rejectUserButton" 
            ConfirmText="Are you sure you want to reject the selected users?" 
            Enabled="True">
        </cc1:ConfirmButtonExtender>
    </div>
                <br />
                <asp:ObjectDataSource ID="TripObjectDataSource" runat="server" 
                    SelectMethod="GetTripById" TypeName="Groupware.TripManager">
                    <SelectParameters>
                        <asp:QueryStringParameter DefaultValue="50" Name="tripId" QueryStringField="ID" 
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
    </div>
    
    <div id="Map">
	

	
  <div id="MapTop"><a id="viewMap" href="#">Mostra/Nascondi Mappa</a></div>
       	<div id="contentMap"> 
        <map:LOAMap ID="map_1" runat="server" MapDiv="mapDiv" ZoomLevel="13" />
        <div id="mapDiv" style="height: 500px; width: 400px;">
            
        </div>
        </div>
<div id="MapBottom"></div>
	</div>
	<div id="createTripContent">
		<div id="headpaper">	
<div id="corner">
    </div></div></div>
    </asp:Content>